<?php

namespace App\Models;

/**
 * Class Blacklist
 * @property integer from_user_id
 * @property integer to_user_id
 */
class Blacklist extends ApplicationModel
{
    protected $fillable = [
        'from_user_id',
        'to_user_id',
    ];

    public function user()
    {
        return $this->belongsTo(User::class, 'from_user_id');
    }

    public function toUser()
    {
        return $this->belongsTo(User::class, 'to_user_id');
    }
}
